''
''
'' cpConstraint -- header translated with help of SWIG FB wrapper
''
'' NOTICE: This file is part of the FreeBASIC Compiler package and can't
''         be included in other distributions without authorization.
''
''
#ifndef __cpConstraint_bi__
#define __cpConstraint_bi__
extern cp_constraint_bias_coef alias "cp_constraint_bias_coef" as cpFloat

type _cpConstraint as cpConstraint

type cpConstraintPreStepFunction as sub cdecl(byval as _cpConstraint ptr, byval as cpFloat, byval as cpFloat)
type cpConstraintApplyImpulseFunction as sub cdecl(byval as _cpConstraint ptr)
type cpConstraintGetImpulseFunction as function cdecl(byval as _cpConstraint ptr) as cpFloat

type cpConstraintClass
	preStep as cpConstraintPreStepFunction
	applyImpulse as cpConstraintApplyImpulseFunction
	getImpulse as cpConstraintGetImpulseFunction
end type

'type cpConstraintClass as any

type cpConstraint
	klass as cpConstraintClass ptr
	a as cpBody ptr
	b as cpBody ptr
	maxForce as cpFloat
	biasCoef as cpFloat
	maxBias as cpFloat
end type

'type cpConstraint as any

declare sub cpConstraintDestroy cdecl alias "cpConstraintDestroy" (byval constraint as cpConstraint ptr)
declare sub cpConstraintFree cdecl alias "cpConstraintFree" (byval constraint as cpConstraint ptr)
declare sub cpConstraintCheckCast cdecl alias "cpConstraintCheckCast" (byval constraint as cpConstraint ptr, byval klass as cpConstraintClass ptr)

#endif
